/**
 * Represents resources
 */
public enum Resource {
	NORESOURCE, MINERALRICH, MINERALPOOR,
	DESERT, LOTSOFWATER, RICHSOIL, POORSOIL,
	RICHFAUNA, LIFELESS, WEIRDMUSHROOMS,
	LOTSOFHERBS, ARTISTIC, WARLIKE;
	
	/**
	 * This method is toString. Depends on
	 *  resource of the planet, show an appropriate messages
	 * 
	 * @return an appropriate string 
	 */
	public String toString() {
		switch (this) {
			case NORESOURCE:
				return "No Resource";
			case MINERALRICH:
				return "Mineral Rich";
			case MINERALPOOR:
				return "Mineral Poor";
			case DESERT:
				return "Desert";
			case LOTSOFWATER:
				return "Lots of Water";
			case RICHSOIL:
				return "Rich Soil";
			case POORSOIL:
				return "Poor Soil";
			default:
				return toStringContinued();
		}
	}
	
	/**
	 * to give messages
	 * @return message
	 */
	private String toStringContinued() {
		switch (this) {
			case RICHFAUNA:
				return "Rich Fauna";
			case LIFELESS:
				return "Lifeless";
			case WEIRDMUSHROOMS:
				return "Weird Mushrooms";
			case LOTSOFHERBS: 
				return "Lots of Herbs";
			case ARTISTIC:
				return "Artistic";
			case WARLIKE:
				return "Warlike";
			default:
				return null;
		}
	}
}
